<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="./xsl/XMLviewer-gif.xsl"?>

<!--
    Document: $Id: service-call-lexs.xml 927 2008-05-31 01:35:32Z jw7 $
    Original : 12/21/2007
    Updated :
    LEXS version : 3.1.1
	N-DEx version : 2.0
    Description : Sample service call submission.   This sample is similar to the missing person report, but in this case no missing person report was created.

			Sample files that end in “-lexs.xml” only include content from the LEXS schemas; the Structured Payload only contains metadata and an empty Report element.  
			These instances can be validated against the LEXS publish-discover.xsd schema.  The files that end in “-ndex.xml” only include content from the N-DEx 
			schemas; each only includes a single N-DEx report element.  These instances can be validated against the N-DEx ndexib.xsd schema.  The remaining files 
			illustrate a complete N-DEx submission that includes both “layers” combined into a single instance.  These instances can be validated against the LEXS 
			publish-discover.xsd schema, but such validation will ignore everything in the Structured Payload except for the metadata; validation will check that the 
			Structured Payload data is well-formed XML, but nothing more.
-->
<lexspd:doPublish
	    xmlns:nc="http://niem.gov/niem/niem-core/2.0"
	    xmlns:em="http://niem.gov/niem/domains/emergencyManagement/2.0"
	    xmlns:fips_10-4="http://niem.gov/niem/fips_10-4/1.0"
	    xmlns:i="http://niem.gov/niem/appinfo/2.0"
	    xmlns:j="http://niem.gov/niem/domains/jxdm/4.0"
		xmlns:im="http://niem.gov/niem/domains/immigration/2.0"
		xmlns:lexs="http://usdoj.gov/leisp/lexs/3.1"
		xmlns:lexslib="http://usdoj.gov/leisp/lexs/library/3.1"
	    xmlns:lexscodes="http://usdoj.gov/leisp/lexs/codes/3.1"
	    xmlns:lexsdigest="http://usdoj.gov/leisp/lexs/digest/3.1"
		xmlns:lexspd="http://usdoj.gov/leisp/lexs/publishdiscover/3.1"
	    xmlns:niem-xsd="http://niem.gov/niem/proxy/xsd/2.0"
		xmlns:nonauth="http://niem.gov/niem/nonauthoritative-code/1.0"
		xmlns:s="http://niem.gov/niem/structures/2.0"
		xmlns:scr="http://niem.gov/niem/domains/screening/2.0"
		xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
		xsi:schemaLocation="http://usdoj.gov/leisp/lexs/publishdiscover/3.1 ../xsd/lexs/publish-discover/3.1/publish-discover.xsd">

  <lexs:PublishMessageContainer>
    <lexs:PublishMessage>
      <lexs:PDMessageMetadata>
        <lexs:LEXSVersion>3.1.1</lexs:LEXSVersion>
        <lexs:MessageDateTime>2006-12-01T09:30:47.0Z</lexs:MessageDateTime>
        <lexs:MessageSequenceNumber>1</lexs:MessageSequenceNumber>
        <lexs:DataSensitivity>SBU</lexs:DataSensitivity>
      </lexs:PDMessageMetadata>

      <lexs:DataSubmitterMetadata>
        <lexs:SystemIdentifier>
          <lexs:ORI>GA1234567 GBI</lexs:ORI>
          <nc:OrganizationName>Georgia Bureau of Investigation</nc:OrganizationName>
          <lexs:SystemID>GIBRS</lexs:SystemID>
        </lexs:SystemIdentifier>

        <lexs:SystemContact>
          <nc:PersonGivenName>James</nc:PersonGivenName>
          <nc:PersonSurName>West</nc:PersonSurName>
          <nc:ContactTelephoneNumber>
            <nc:NANPTelephoneNumber>
              <nc:TelephoneAreaCodeID>123</nc:TelephoneAreaCodeID>
              <nc:TelephoneExchangeID>555</nc:TelephoneExchangeID>
              <nc:TelephoneLineID>1212</nc:TelephoneLineID>
            </nc:NANPTelephoneNumber>
          </nc:ContactTelephoneNumber>
        </lexs:SystemContact>
      </lexs:DataSubmitterMetadata>

      <lexs:DataItemPackage>
        <lexs:PackageMetadata>
          <lexs:DataItemID>MISSPERS_00923482</lexs:DataItemID>
          <lexs:DataItemContact>
            <nc:PersonSurName>Smith</nc:PersonSurName>
            <nc:PersonFullName>Mary Jones-Smith</nc:PersonFullName>
            <nc:ContactTelephoneNumber>
              <nc:FullTelephoneNumber>
                <nc:TelephoneNumberFullID>333-444-5555</nc:TelephoneNumberFullID>
                <nc:TelephoneSuffixID>6</nc:TelephoneSuffixID>
              </nc:FullTelephoneNumber>
            </nc:ContactTelephoneNumber>
          </lexs:DataItemContact>
          <lexs:DataItemDate>1967-08-13</lexs:DataItemDate>
          <!-- DataItemReferenceID may be the same as the DataItemIDText, or may be a more human-readable version of DataItemID -->
          <lexs:DataItemReferenceID>MISSPERS_00923482</lexs:DataItemReferenceID>
          <lexs:DataItemPublishInstruction>Insert</lexs:DataItemPublishInstruction>
          <lexs:DataItemStatus>Open</lexs:DataItemStatus>
          <lexs:DataOwnerMetadata>
            <lexs:DataOwnerIdentifier>
              <lexs:ORI>GA1234567 GBI</lexs:ORI>
              <nc:OrganizationName>Georgia Bureau of Investigation</nc:OrganizationName>
              <lexs:SystemID>GIBRS</lexs:SystemID>
            </lexs:DataOwnerIdentifier>
            <lexs:DataOwnerContact>
              <nc:PersonGivenName>James</nc:PersonGivenName>
              <nc:PersonSurName>West</nc:PersonSurName>
              <nc:ContactTelephoneNumber>
                <nc:FullTelephoneNumber>
                  <nc:TelephoneNumberFullID>123-555-1212</nc:TelephoneNumberFullID>
                </nc:FullTelephoneNumber>
              </nc:ContactTelephoneNumber>
            </lexs:DataOwnerContact>
          </lexs:DataOwnerMetadata>
          <lexs:DisseminationCriteria>white</lexs:DisseminationCriteria>
          <lexs:DataItemCategory>
            <lexs:DataItemCategoryText>Missing Person Report</lexs:DataItemCategoryText>
          </lexs:DataItemCategory>
        </lexs:PackageMetadata>

        <lexs:Digest>

          <!--=======================  Activity Service Call  =======================-->
          <lexsdigest:EntityActivity>
            <lexsdigest:Metadata s:id="MServiceCall1">
              <nc:SourceIDText>509825-06</nc:SourceIDText>
            </lexsdigest:Metadata>

            <nc:Activity s:id="ServiceCall1" s:metadata="MServiceCall1">
              <nc:ActivityIdentification>
                <!-- note that in this sample, the Service Call Number (ActivityIdentification/IdentificationID) is the same as the SourceIDText above  -->
                <nc:IdentificationID>509825-06</nc:IdentificationID>
              </nc:ActivityIdentification>
              <nc:ActivityCategoryText>Service Call</nc:ActivityCategoryText>
              <nc:ActivityDate>
                <nc:DateTime>2006-12-01T14:31:00.0Z</nc:DateTime>
              </nc:ActivityDate>
              <nc:ActivityDescriptionText>Caller believes father is missing.  Has not seen or heard from for 3 days.  States this is very unusual.</nc:ActivityDescriptionText>
            </nc:Activity>
          </lexsdigest:EntityActivity>

          <!--=======================  Person with MissingPerson Role  =======================-->
          <lexsdigest:EntityPerson s:id="EPerson1">
            <lexsdigest:Metadata s:id="MPerson1">
              <nc:SourceIDText>Person_0055328</nc:SourceIDText>
            </lexsdigest:Metadata>

            <lexsdigest:Metadata s:id="MetaMissingPerson1">
              <nc:SourceIDText>MissingPerson_0012334558</nc:SourceIDText>
            </lexsdigest:Metadata>

            <lexsdigest:Person s:id="Person1" s:metadata="MPerson1">
              <nc:PersonAgeMeasure>
                <nc:MeasurePointValue>75</nc:MeasurePointValue>
                <nc:TimeUnitCode>ANN</nc:TimeUnitCode>
              </nc:PersonAgeMeasure>
              <nc:PersonBirthDate>
                <nc:Date>1931-12-01</nc:Date>
              </nc:PersonBirthDate>
              <!-- Use this type for abstract element 'nc:PersonCitizenship' -->
              <nc:PersonCitizenshipFIPS10-4Code>US</nc:PersonCitizenshipFIPS10-4Code>
              <nc:PersonName>
                <nc:PersonGivenName>Rosco</nc:PersonGivenName>
                <nc:PersonSurName>Wilson</nc:PersonSurName>
              </nc:PersonName>
            </lexsdigest:Person>

            <j:MissingPerson s:id="MissingPerson1" s:metadata="MetaMissingPerson1">
              <nc:RoleOfPersonReference s:ref="Person1" />
              <j:MissingPersonCircumstanceText>Unknown</j:MissingPersonCircumstanceText>
              <j:MissingPersonDeclarationDate>
                <nc:Date>2006-12-01</nc:Date>
              </j:MissingPersonDeclarationDate>
              <j:MissingPersonLastSeenDate>
                <nc:Date>2006-11-27</nc:Date>
              </j:MissingPersonLastSeenDate>
            </j:MissingPerson>

          </lexsdigest:EntityPerson>

          <!--==================  Declaration Person / Service Call Caller / Last Seen Witness  ==================-->
          <lexsdigest:EntityPerson>
            <lexsdigest:Metadata s:id="MPerson2">
              <nc:SourceIDText>Person_0023485875</nc:SourceIDText>
            </lexsdigest:Metadata>

            <lexsdigest:Person s:id="Person2" s:metadata="MPerson2">
              <nc:PersonAgeMeasure>
                <nc:MeasurePointValue>31</nc:MeasurePointValue>
                <nc:TimeUnitCode>ANN</nc:TimeUnitCode>
              </nc:PersonAgeMeasure>
              <nc:PersonBirthDate>
                <nc:Date>1975-11-18</nc:Date>
              </nc:PersonBirthDate>
              <!-- Use this type for abstract element 'nc:PersonCitizenship' -->
              <nc:PersonCitizenshipFIPS10-4Code>US</nc:PersonCitizenshipFIPS10-4Code>
              <nc:PersonName>
                <nc:PersonGivenName>Trudy</nc:PersonGivenName>
                <nc:PersonSurName>Wilson</nc:PersonSurName>
              </nc:PersonName>
            </lexsdigest:Person>
          </lexsdigest:EntityPerson>

          <!--=======================  Person who took Service Call/Dispatched Officer  =======================-->
          <lexsdigest:EntityPerson>
            <lexsdigest:Metadata s:id="MPerson3">
              <nc:SourceIDText>Person_234234566</nc:SourceIDText>
            </lexsdigest:Metadata>

            <lexsdigest:Person s:id="Person3" s:metadata="MPerson3">
              <nc:PersonName>
                <nc:PersonSurName>Grey</nc:PersonSurName>
              </nc:PersonName>
            </lexsdigest:Person>
          </lexsdigest:EntityPerson>

          <!--====================  Person with ServiceCallDispatchedOfficial (Officer) Role  ====================-->
          <lexsdigest:EntityPerson>
            <lexsdigest:Metadata s:id="MPerson4">
              <nc:SourceIDText>Person_4564567800005</nc:SourceIDText>
            </lexsdigest:Metadata>

            <lexsdigest:Metadata s:id="MOfficerPerson1">
              <nc:SourceIDText>Officer_4564564</nc:SourceIDText>
            </lexsdigest:Metadata>

            <lexsdigest:Person s:id="Person4" s:metadata="MPerson4">
              <nc:PersonName>
                <nc:PersonSurName>Peoples</nc:PersonSurName>
              </nc:PersonName>
            </lexsdigest:Person>

            <j:ServiceCallDispatchedOfficial s:id="OfficerPerson1" s:metadata="MOfficerPerson1">
              <nc:RoleOfPersonReference s:ref="Person4"/>
              <j:EnforcementOfficialBadgeIdentification>
                <nc:IdentificationID>372</nc:IdentificationID>
              </j:EnforcementOfficialBadgeIdentification>
            </j:ServiceCallDispatchedOfficial>
          </lexsdigest:EntityPerson>

          <!--=======================  Enforcement Unit  =======================-->
          <lexsdigest:EntityOrganization>
            <lexsdigest:Metadata s:id="MUnit1">
              <nc:SourceIDText>Unit_203</nc:SourceIDText>
            </lexsdigest:Metadata>

            <nc:Organization s:id="Unit1" s:metadata="MUnit1">
              <nc:OrganizationCategoryText>Criminal justice</nc:OrganizationCategoryText>
              <nc:OrganizationName>Texas State Police</nc:OrganizationName>
            </nc:Organization>
          </lexsdigest:EntityOrganization>

          <!--====================  Missing Person Residence / Dispatch Location  ====================-->
          <lexsdigest:EntityLocation>
            <lexsdigest:Metadata s:id="MLocation1">
              <nc:SourceIDText>Location_234234558</nc:SourceIDText>
            </lexsdigest:Metadata>

            <nc:Location s:id="Location1" s:metadata="MLocation1">
              <nc:LocationAddress>
                <nc:StructuredAddress>
                  <nc:LocationStreet>
                    <nc:StreetFullText>1313 Mockingbird Lane</nc:StreetFullText>
                    <nc:StreetNumberText>1313</nc:StreetNumberText>
                    <nc:StreetName>Mockingbird</nc:StreetName>
                    <nc:StreetCategoryText>Lane</nc:StreetCategoryText>
                  </nc:LocationStreet>
                  <nc:LocationCityName>Mortuary</nc:LocationCityName>
                  <nc:LocationStateName>Texas</nc:LocationStateName>
                  <nc:LocationCountryName>United States</nc:LocationCountryName>
                  <nc:LocationPostalCode>13013</nc:LocationPostalCode>
                </nc:StructuredAddress>
              </nc:LocationAddress>
            </nc:Location>
          </lexsdigest:EntityLocation>

          <!--=======================  Service Caller's Location / Missing Person Last Seen Witness Location =======================-->
          <lexsdigest:EntityLocation>
            <lexsdigest:Metadata s:id="MLocation2">
              <nc:SourceIDText>Location_234234552</nc:SourceIDText>
            </lexsdigest:Metadata>

            <nc:Location s:id="Location2" s:metadata="MLocation2">
              <nc:LocationAddress>
                <nc:StructuredAddress>
                  <nc:LocationStreet>
                    <nc:StreetNumberText>8429</nc:StreetNumberText>
                    <nc:StreetName>Mountain</nc:StreetName>
                    <nc:StreetCategoryText>Road</nc:StreetCategoryText>
                  </nc:LocationStreet>
                  <nc:LocationCityName>Mortuary</nc:LocationCityName>
                  <nc:LocationStateName>Texas</nc:LocationStateName>
                  <nc:LocationCountryName>United States</nc:LocationCountryName>
                  <nc:LocationPostalCode>13013</nc:LocationPostalCode>
                </nc:StructuredAddress>
              </nc:LocationAddress>
            </nc:Location>
          </lexsdigest:EntityLocation>

          <!--=======================  Telephone 1 (Service Call Number)  =======================-->
          <lexsdigest:EntityTelephoneNumber>
            <lexsdigest:Metadata s:id="MTelephone1">
              <nc:SourceIDText>ContactInformation_Telephone_00234</nc:SourceIDText>
            </lexsdigest:Metadata>

            <lexsdigest:TelephoneNumber s:id="Telephone1" s:metadata="MTelephone1">
              <nc:NANPTelephoneNumber>
                <nc:TelephoneAreaCodeID>309</nc:TelephoneAreaCodeID>
                <nc:TelephoneExchangeID>684</nc:TelephoneExchangeID>
                <nc:TelephoneLineID>1333</nc:TelephoneLineID>
              </nc:NANPTelephoneNumber>
            </lexsdigest:TelephoneNumber>
          </lexsdigest:EntityTelephoneNumber>

          <!--=======================  Telephone 2 (Missing Person Witness Number)  =======================-->
          <lexsdigest:EntityTelephoneNumber>
            <lexsdigest:Metadata s:id="MTelephone2">
              <nc:SourceIDText>ContactInformation_Telephone_12312355</nc:SourceIDText>
            </lexsdigest:Metadata>
            <lexsdigest:TelephoneNumber s:id="Telephone2" s:metadata="MTelephone2">
              <nc:NANPTelephoneNumber>
                <nc:TelephoneAreaCodeID>309</nc:TelephoneAreaCodeID>
                <nc:TelephoneExchangeID>684</nc:TelephoneExchangeID>
                <nc:TelephoneLineID>2489</nc:TelephoneLineID>
              </nc:NANPTelephoneNumber>
            </lexsdigest:TelephoneNumber>
          </lexsdigest:EntityTelephoneNumber>

          <!--=======================  Associations  =======================-->
          <lexsdigest:Associations>

            <!-- Links the dispatched officer to the service call. -->
            <j:ActivityEnforcementOfficialAssociation>
              <nc:ActivityReference s:ref="ServiceCall1" />
              <nc:PersonReference s:ref="Person4" />
            </j:ActivityEnforcementOfficialAssociation>

            <!--    Person Telephone Number Association (Links the missing person to his home telephone number)    -->
            <lexsdigest:EntityTelephoneNumberAssociation>
              <nc:PersonReference s:ref="Person1" />
              <lexsdigest:TelephoneNumberReference s:ref="Telephone1" />
              <lexsdigest:TelephoneNumberHomeIndicator>true</lexsdigest:TelephoneNumberHomeIndicator>
            </lexsdigest:EntityTelephoneNumberAssociation>

            <!-- Links the daughter to her home telephone number -->
            <lexsdigest:EntityTelephoneNumberAssociation>
              <nc:PersonReference s:ref="Person2" />
              <lexsdigest:TelephoneNumberReference s:ref="Telephone2" />
              <lexsdigest:TelephoneNumberHomeIndicator>true</lexsdigest:TelephoneNumberHomeIndicator>
            </lexsdigest:EntityTelephoneNumberAssociation>

            <!-- Person Last Seen Witness Association -->
            <lexsdigest:PersonLastSeenWitnessAssociation>
              <lexsdigest:MissingPersonReference s:ref="Person1" />
              <lexsdigest:WitnessPersonReference s:ref="Person2" />
            </lexsdigest:PersonLastSeenWitnessAssociation>

            <!--     Service Call Caller Association    -->
            <lexsdigest:ServiceCallCallerAssociation>
              <nc:ActivityReference s:ref="ServiceCall1"/>
              <nc:PersonReference s:ref="Person2"/>
            </lexsdigest:ServiceCallCallerAssociation>

            <!--     Service Call Dispatcher Association    -->
            <lexsdigest:ServiceCallDispatcherAssociation>
              <nc:ActivityReference s:ref="ServiceCall1"/>
              <nc:PersonReference s:ref="Person3"/>
            </lexsdigest:ServiceCallDispatcherAssociation>

            <!-- Service Call Dispatch Location Association (Missing Person Residence) -->
            <lexsdigest:ServiceCallDispatchLocationAssociation>
              <nc:ActivityReference s:ref="ServiceCall1"/>
              <nc:LocationReference s:ref="Location1" />
            </lexsdigest:ServiceCallDispatchLocationAssociation>

            <!--    Service Call Origination Location    -->
            <lexsdigest:ServiceCallLocationAssociation>
              <nc:ActivityReference s:ref="ServiceCall1"/>
              <nc:LocationReference s:ref="Location2" />
            </lexsdigest:ServiceCallLocationAssociation>

            <!--     Service Call Operator Association    -->
            <lexsdigest:ServiceCallOperatorAssociation>
              <nc:ActivityReference s:ref="ServiceCall1"/>
              <nc:PersonReference s:ref="Person3"/>
            </lexsdigest:ServiceCallOperatorAssociation>

            <!--     Service Call Telephone Number Association    -->
            <!-- This is where the call ORIGINATED from, i.e. the daughter's house -->
            <lexsdigest:ServiceCallTelephoneNumberAssociation>
              <nc:ActivityReference s:ref="ServiceCall1"/>
              <lexsdigest:TelephoneNumberReference s:ref="Telephone2"/>
            </lexsdigest:ServiceCallTelephoneNumberAssociation>

            <!-- Father/Daughter Relationship -->
            <nc:ImmediateFamilyAssociation>
              <nc:PersonParentReference s:ref="Person1" />
              <nc:PersonChildReference s:ref="Person2" />
              <nc:FamilyKinshipCode>adoption</nc:FamilyKinshipCode>
            </nc:ImmediateFamilyAssociation>

            <!--    Enforcement Official's Unit Association    -->
            <nc:PersonAssignedUnitAssociation>
              <nc:PersonReference s:ref="OfficerPerson1"/>
              <nc:OrganizationReference s:ref="Unit1"/>
            </nc:PersonAssignedUnitAssociation>

            <!--  Last Place the Missing Person was seen -->
            <nc:PersonLastSeenLocationAssociation>
              <nc:PersonReference s:ref="Person1" />
              <nc:LocationReference s:ref="Location1" />
            </nc:PersonLastSeenLocationAssociation>

            <!-- Missing Person to residence association. -->
            <nc:ResidenceAssociation>
              <nc:PersonReference s:ref="Person1" />
              <nc:LocationReference s:ref="Location1" />
            </nc:ResidenceAssociation>

            <!-- Daughter to residence association. -->
            <nc:ResidenceAssociation>
              <nc:PersonReference s:ref="Person2" />
              <nc:LocationReference s:ref="Location2" />
            </nc:ResidenceAssociation>

          </lexsdigest:Associations>

        </lexs:Digest>

        <!--======================= N-DEx Data ======================-->
        <lexs:StructuredPayload>
          <lexs:StructuredPayloadMetadata>
            <lexs:CommunityURI>http://fbi.gov/cjis/N-DEx/IncidentArrest/2.0</lexs:CommunityURI>
            <lexs:CommunityDescription>N-DEx Incident/Arrest</lexs:CommunityDescription>
            <lexs:CommunityVersion>2.0</lexs:CommunityVersion>
          </lexs:StructuredPayloadMetadata>

          <xml-include file="service-call-ndex.xml" />

        </lexs:StructuredPayload>

      </lexs:DataItemPackage>

    </lexs:PublishMessage>
  </lexs:PublishMessageContainer>
</lexspd:doPublish>